<?php
namespace Member\Model;
use Think\Model;

class WebSiteModel extends Model {
	protected $_auto = array(
			array('create_time', NOW_TIME, self::MODEL_INSERT),
			array('update_time', NOW_TIME, self::MODEL_UPDATE)
	);
	
	function init($appid) {
		$data = $this->create();
		$data['appid'] = $appid;
		$this->add($data);
	}
}